<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询</title>
</head>
<body>
<table border="1" class="list">
    <tr>
        <td>图书类型编号</td>
        <td>图书类型名称</td>
        <td>可借天数</td>
        <td>逻辑删除(0:没删 1:已删)</td>
    </tr>
    <tr th:each="booktype : ${booktypeList}">
        <td th:text="${booktype.id}"></td>
        <td th:text="${booktype.typename}"></td>
        <td th:text="${booktype.days}"></td>
        <td th:text="${booktype.deleted}"></td>
        <td>
            <form action="update" method="post">
                <button name="id" th:value="${booktype.id}" type="submit">修改</button>
            </form>
        </td>
        <td>
            <form action="delete" method="post">
                <button name="id" th:value="${booktype.id}" type="submit">删除</button>
            </form>
        </td>
    </tr>
</table>
<button><a href="BookTypeAdd.html">增加图书类型</a></button>
<button><a href="Jump.html" target="left">返回主界面</a></button>
</body>
</html>